package com.chenhongjian.webapp.service;

import com.chenhongjian.webapp.bean.TbUser;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by a on 2018/3/27.
 */

public interface IUserService {
    int sendSmscode(String phone);
    TbUser login(String user,String pass);
    TbUser loginPhone(String phone,String code);
    int getUserinfo(int id);
    int updateUserinfo(TbUser user);
    int register(TbUser user);

    TbUser saveUserByNameAndPhone(String phone, String username);

    void vote(TbUser user, String phone);

    List<TbUser>  getList();
}
